﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using DbAdapter.sqldbAdapter;

namespace Water.Model
{
    public static class BuilderMrno
    {
        public static string GetMrnoFortbl(string tblname)
        {
            sqldb db = new sqldb();
            string sql = "execute BuilderMrno '" + tblname + "'";
            object mrno = db.ExecuteScalar(sqlconn.GetConnStr(), CommandType.Text, sql);
            return mrno.ToString();
        }
    }
}
